package com.ruoyi.shoufang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 商户表
 * @TableName tb_business
 */
@TableName(value ="tb_business")
@Data
public class TbBusiness implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String corporation;

    /**
     * 
     */
    private Integer province;

    /**
     * 
     */
    private Integer city;

    /**
     * 
     */
    private Integer county;

    /**
     * 
     */
    private String address;

    /**
     * 1 个人职业房东 2 公司化公寓
     */
    private Integer type;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Integer userId;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Integer reserve1;

    /**
     * 
     */
    private Integer reserve2;

    /**
     * 
     */
    private String reserve3;

    /**
     * 
     */
    private String reserve4;

    /**
     * 
     */
    private String reserve5;

    /**
     * 营业执照
     */
    private String url;

    /**
     * 统一信征码
     */
    private String zheng;

    /**
     * 头像
     */
    private String headPicture;

    /**
     * 
     */
    private String legalPersonName;

    /**
     * 身份证号
     */
    private String certNum;

    /**
     * 身份证正面
     */
    private String certPicture;

    /**
     * 身份证反面
     */
    private String certPicture2;

    /**
     * 手持身份证
     */
    private String certPicture3;

    /**
     * 品牌名
     */
    private String brandName;

    /**
     * 公寓网址
     */
    private String apartmentUrl;

    /**
     * 客服热线
     */
    private String serviceHotline;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbBusiness other = (TbBusiness) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCorporation() == null ? other.getCorporation() == null : this.getCorporation().equals(other.getCorporation()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getCounty() == null ? other.getCounty() == null : this.getCounty().equals(other.getCounty()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getReserve1() == null ? other.getReserve1() == null : this.getReserve1().equals(other.getReserve1()))
            && (this.getReserve2() == null ? other.getReserve2() == null : this.getReserve2().equals(other.getReserve2()))
            && (this.getReserve3() == null ? other.getReserve3() == null : this.getReserve3().equals(other.getReserve3()))
            && (this.getReserve4() == null ? other.getReserve4() == null : this.getReserve4().equals(other.getReserve4()))
            && (this.getReserve5() == null ? other.getReserve5() == null : this.getReserve5().equals(other.getReserve5()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getZheng() == null ? other.getZheng() == null : this.getZheng().equals(other.getZheng()))
            && (this.getHeadPicture() == null ? other.getHeadPicture() == null : this.getHeadPicture().equals(other.getHeadPicture()))
            && (this.getLegalPersonName() == null ? other.getLegalPersonName() == null : this.getLegalPersonName().equals(other.getLegalPersonName()))
            && (this.getCertNum() == null ? other.getCertNum() == null : this.getCertNum().equals(other.getCertNum()))
            && (this.getCertPicture() == null ? other.getCertPicture() == null : this.getCertPicture().equals(other.getCertPicture()))
            && (this.getCertPicture2() == null ? other.getCertPicture2() == null : this.getCertPicture2().equals(other.getCertPicture2()))
            && (this.getCertPicture3() == null ? other.getCertPicture3() == null : this.getCertPicture3().equals(other.getCertPicture3()))
            && (this.getBrandName() == null ? other.getBrandName() == null : this.getBrandName().equals(other.getBrandName()))
            && (this.getApartmentUrl() == null ? other.getApartmentUrl() == null : this.getApartmentUrl().equals(other.getApartmentUrl()))
            && (this.getServiceHotline() == null ? other.getServiceHotline() == null : this.getServiceHotline().equals(other.getServiceHotline()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCorporation() == null) ? 0 : getCorporation().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getCounty() == null) ? 0 : getCounty().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getReserve1() == null) ? 0 : getReserve1().hashCode());
        result = prime * result + ((getReserve2() == null) ? 0 : getReserve2().hashCode());
        result = prime * result + ((getReserve3() == null) ? 0 : getReserve3().hashCode());
        result = prime * result + ((getReserve4() == null) ? 0 : getReserve4().hashCode());
        result = prime * result + ((getReserve5() == null) ? 0 : getReserve5().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getZheng() == null) ? 0 : getZheng().hashCode());
        result = prime * result + ((getHeadPicture() == null) ? 0 : getHeadPicture().hashCode());
        result = prime * result + ((getLegalPersonName() == null) ? 0 : getLegalPersonName().hashCode());
        result = prime * result + ((getCertNum() == null) ? 0 : getCertNum().hashCode());
        result = prime * result + ((getCertPicture() == null) ? 0 : getCertPicture().hashCode());
        result = prime * result + ((getCertPicture2() == null) ? 0 : getCertPicture2().hashCode());
        result = prime * result + ((getCertPicture3() == null) ? 0 : getCertPicture3().hashCode());
        result = prime * result + ((getBrandName() == null) ? 0 : getBrandName().hashCode());
        result = prime * result + ((getApartmentUrl() == null) ? 0 : getApartmentUrl().hashCode());
        result = prime * result + ((getServiceHotline() == null) ? 0 : getServiceHotline().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", corporation=").append(corporation);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", county=").append(county);
        sb.append(", address=").append(address);
        sb.append(", type=").append(type);
        sb.append(", status=").append(status);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", reserve1=").append(reserve1);
        sb.append(", reserve2=").append(reserve2);
        sb.append(", reserve3=").append(reserve3);
        sb.append(", reserve4=").append(reserve4);
        sb.append(", reserve5=").append(reserve5);
        sb.append(", url=").append(url);
        sb.append(", zheng=").append(zheng);
        sb.append(", headPicture=").append(headPicture);
        sb.append(", legalPersonName=").append(legalPersonName);
        sb.append(", certNum=").append(certNum);
        sb.append(", certPicture=").append(certPicture);
        sb.append(", certPicture2=").append(certPicture2);
        sb.append(", certPicture3=").append(certPicture3);
        sb.append(", brandName=").append(brandName);
        sb.append(", apartmentUrl=").append(apartmentUrl);
        sb.append(", serviceHotline=").append(serviceHotline);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}